home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 11 / Info-Mac_XI_Disc_1.cdr_ / Info-Mac XI Disc 1.cdr / Programs / Disk & File / touchMe 1.1.2 / Guide source / Content < prev    next >
Encoding:
Text File  |  1997-02-10  |  15.0 KB  |  432 lines  |  [TEXT/ttxt]

  1. ################################
  2. #
  3. #    File:        Content (touchMe Guide)
  4. #
  5. #    Contains:    Guide Script commands that define the content of your guide file.
  6. #
  7. #    Coded by:    Mizutori Tetsuya, January 23, 1997, February 10, 1997.
  8. #    Copyright:    ©1997 by Mizutori Tetsuya
  9. #
  10. ################################
  11.  
  12. ################################
  13. #    How To Use This File
  14. ################################
  15. # This file will contain the actual text that appears on your guide
  16. # file's panels.  (As your guide file grows, it may be helpful to break
  17. # this file into several smaller files).
  18.  
  19. # This file is part a set of files that you will compile to create your
  20. # guide file.  You will also need:
  21. #
  22. # • Build File       - a file that points to all of the related source 
  23. #                      files that define your guide file.
  24. #
  25. # • Standard Setup   - a file that contains the Guide Script commands 
  26. #                      needed to setup a guide file that follows the 
  27. #                      Apple Guide HI guidelines.  
  28. #
  29. # To use this file:
  30. #
  31. #  1.  Edit this file to define the content of your guide file.
  32. #
  33. #  2.  The "Build File" already points to the "Standard Setup" and "Content" 
  34. #      files.  If you break your content into several smaller files, 
  35. #      you must add <Include> commands to also point to them.
  36. #
  37. #  3.  Use the Guide Maker Build utility to compile the "Build file".
  38.  
  39.  
  40. ################################
  41. #    Setup guide frame
  42. ################################
  43. # Substitute these settings which are defined in "Standard Setup" file.
  44.  
  45. #<Help Menu> "touchMe Guide", ABOUT,"?"
  46. <Help Menu> "touchMe Guide", ABOUT
  47.  
  48. <Balloon Menu Text> "Displays information and instructions you can use while working in the touchMe application."
  49.  
  50. <App Creator> 'MzTm'
  51.  
  52. <VERSION>    "touchMe Guide 1.1.2 ©1997 Mizutori Tetsuya", "1.1.2"
  53. #<App Text> "touchMe"
  54.  
  55. <Startup Window> PRESENTATION, "My Sequence"
  56. #<Startup Window> SINGLE, TOPICS
  57.  
  58. <Min Height> 200
  59. #<Max Height> 400
  60.  
  61. #<Define Format>    "Full", Column(6,11,330), "Espy Serif", 10, PLAIN, , Left, false
  62. <Define Format>    "Heading", Column(6,11,330), "Espy Serif", 10, BOLD, BLUE, Left, false
  63. <Define Format>    "Text", Column(24,11,330), "Espy Serif", 10, PLAIN, , Left, false
  64. <Define Format>    "Coding", Column(24,11,330), "Geneva", 10, PLAIN, , Left, false
  65.  
  66.  
  67. ################################
  68. #    Sequence Definitions
  69. ################################
  70.  
  71. <Define Sequence> "My Sequence", "About touchMe..."
  72.     <Panel> "About touchMe program"
  73.     <Panel> "Table of Contents"
  74.     <Panel> "Why is needed touchMe?"
  75.     <Panel> "How to use it?"
  76.     <Panel> "How to use it? (2)"
  77.     <Panel> "How work the switches?"
  78.     <Panel> "How work the switches? (2)"
  79.     <Panel> "How work the switches? (3)"
  80.     <Panel> "How work the switches? (4)"
  81.     <Panel> "How work the switches? (5)"
  82.     <Panel> "AppleScript commands"
  83.     <Panel> "AppleScript classes"
  84.     <Panel> "AppleScript examples"
  85.     <Panel> "Revision history"
  86.     <Panel> "Revision history (2)"
  87.     <Panel> "Revision history (3)"
  88.     <Panel> "The package includes..."
  89.     <Panel> "About the Author"
  90. <End Sequence>
  91.  
  92.  
  93. ################################
  94. #    Topic Area Definitions
  95. ################################
  96.  
  97. #<Topic Area> "My Topic Area"
  98. #<Header> "About touchMe..."
  99. #<Topic> "topics A", "seqA"
  100. #<Topic> "topics B", "seqB"
  101. #<Topic> "topics C", "seqC"
  102. #<Topic> "topics D", "seqD"
  103.  
  104.  
  105. ################################
  106. #    Index Term Definitions
  107. ################################
  108.  
  109. #<Index> "Sequence"
  110. #<Header> "How do I..."
  111. #<Topic> "define a sequence?", "How do I define a sequence?"
  112.  
  113.  
  114. ################################
  115. #    Panel Definitions
  116. ################################
  117.  
  118. ########
  119. # Panel "About touchMe program"
  120. ########
  121. <Define Panel> "About touchMe program"
  122. <Format> "Heading"
  123. touchMe 1.1.2 (February 10, 1997)
  124.  
  125. <Format> "Text"
  126. Copyright ©1994-1997 Mizutori Tetsuya
  127. This program is a freeware.
  128.  
  129. This is an application program to change the creation and/or modification date time of any Macintosh files or folders. It is like Unix command “touch”. To run the program, it requires System 7.1 or later. Under System 7.5, touchMe is also AppleScriptable and allows to accept drag & drop operations. The program is written under the Metrowerks’ C++ application framework of PowerPlant.
  130. <End Panel>
  131.  
  132.  
  133. ########
  134. # Panel "Table of Contents"
  135. ########
  136. <Define Panel> "Table of Contents"
  137. <Format> "Heading"
  138. Table of Contents
  139.  
  140. <Format> "Text"
  141. • Why is needed touchMe?
  142. • How to use it? (“setup the optional switches”)
  143.    How to use it? (“just drag & drop files or folders”)
  144. • How work the switches? (“to the current date time”)
  145.    How work the switches? (“to [exact date time] 1)”)
  146.    How work the switches? (“to [exact date time] 2-3)”)
  147.    How work the switches? (“to [exact date time] 4)”)
  148.    How work the switches? (“to fetch the first item”)
  149. • AppleScript commands
  150.    AppleScript classes
  151.    AppleScript examples
  152. • Revision history (v.1.1.2)
  153.    Revision history (v.1.1.1)
  154.    Revision history (v.1.0, v.1.1)
  155. • The package includes...
  156. • About the Author
  157. <End Panel>
  158.  
  159.  
  160. ########
  161. # Panel "Why is needed touchMe?"
  162. ########
  163. <Define Panel> "Why is needed touchMe?"
  164. <Format> "Heading"
  165. Why is needed touchMe?
  166.  
  167. <Format> "Text"
  168. I have been using this program for these three years in private to set the right date time stamps of archive files that I downloaded. The reason I want to change the date time stamps is that the archive files can have the correct date time corresponding to their original files. There may be a way to do this with ResEdit, but using touchMe is more practical.
  169.  
  170.    CASE 1 such that you have the archive file and the original file in the same folder. To set the date time stamp of archive file to the one of original, select both files, but the original file must be the first, and drag & drop them onto the touchMe application icon.
  171.  
  172.    CASE 2 such that these files are located in different folders or volumes. A nice tip to set the date time stamps. On running the touchMe application, select and drag & drop the original file into the window area of touchMe application to fetch its date time stamp. And then select the archive file and drag & drop it onto the touchMe application icon.
  173. <End Panel>
  174.  
  175.  
  176. ########
  177. # Panel "How to use it?"
  178. ########
  179. <Define Panel> "How to use it?"
  180. <Format> "Heading"
  181. How to use it? (1)
  182.  
  183. <Format> "Text"
  184. First of all, you should setup the optional switches of touchMe program, which are listed below;
  185.  [x] to Update creation / modification date...
  186.  
  187.   • to the current date time
  188.   • to [exact date time]
  189.   • to fetch the first item
  190.   • to fetch the first item, and set
  191.  
  192. These settings are automatically stored to touchMe preferences file when you quit by “OK” button.
  193. <End Panel>
  194.  
  195.  
  196. <Define Panel> "How to use it? (2)"
  197. <Format> "Heading"
  198. How to use it? (2)
  199.  
  200. <Format> "Text"
  201.      Second, select and drag & drop the files or folders onto the touchMe application icon. Or, with the option-key pressed (indicating a mark on the top-left corner of the window, as shown below), you can drag & drop them in the touchMe window area, instead. During a drag & drop with option-key pressed, the command “touch” and “fetch” are exchanged temporarily each other. Then all the files you selected are changed to have the same creation and/or modification date time. You can confirm it in Finder’s “Get Info” dialog.
  202.  
  203. <PICT> 2000, CENTER
  204. <End Panel>
  205.  
  206.  
  207. ########
  208. # Panel "How work the switches?"
  209. ########
  210. <Define Panel> "How work the switches?"
  211. <Format> "Heading"
  212. How work the switches? (1)
  213.  
  214. <Format> "Text"
  215.   • to the current date time
  216.      All the files or folders you selected are to have the same current date time.
  217.  
  218.   • to [exact date time]
  219.      Enter the date time, like as “8/1/96” or “August 1, 1996” for date and “12:34:56” for time. There are four ways to set these date time fields as follows.
  220. ...This item is followed by next 1) - 4) operations.
  221. <End Panel>
  222.  
  223.  
  224. <Define Panel> "How work the switches? (2)"
  225. <Format> "Heading"
  226. How work the switches? (2)
  227.  
  228. <Format> "Text"
  229.   • to [exact date time] (continued)
  230.      1) Type in the date time strings. Please be careful to enter them in the right date time format. If your system is 7.5 or later, you are allowed to drag the date time string to edit the fields. According to a general rule, it will be cut if you drop it on Finder’s trash icon.
  231.  
  232. <PICT> 2001, CENTER
  233. <End Panel>
  234.  
  235.  
  236. <Define Panel> "How work the switches? (3)"
  237. <Format> "Heading"
  238. How work the switches? (3)
  239.  
  240. <Format> "Text"
  241.   • to [exact date time] (continued)
  242.      2) Push a tiny button at top-right corner to set the present time. With the option-key pressed, then the time part of it will be cleared to zero, that means a midnight.
  243.  
  244.      3) Press the option-key when you open or drag & drop the file (or folder). The date time stamp is fetched from the target file (or folder) and is set to the fields properly.
  245. <End Panel>
  246.  
  247.  
  248. <Define Panel> "How work the switches? (4)"
  249. <Format> "Heading"
  250. How work the switches? (4)
  251.  
  252. <Format> "Text"
  253.   • to [exact date time] (continued)
  254.      4) Under System 7.5, drag & drop the file (or folder) directly in the touchMe window. When the dragged item has entered the window area, all the fields are turned hilited to indicate to accept its date time stamp. In particular, each field is also sensitive to accept and fetch the date or time stamp separately from the dropped item.
  255.  
  256. <PICT> 2002, CENTER
  257. <End Panel>
  258.  
  259.  
  260. <Define Panel> "How work the switches? (5)"
  261. <Format> "Heading"
  262. How work the switches? (5)
  263.  
  264. <Format> "Text"
  265.   • to fetch the first item
  266.      touchMe can fetch the date time stamp of the “first” item among the files (or folders) you selected. Well, what does it mean the “first”? It may differ under the various conditions by which view you open the Finder’s folder.
  267.  
  268.      1) View by Small Icon or Icon; The first item is the one you have selected first. You may choose additional files or folders as the followers by clicking them with shift-key pressed.
  269.  
  270.      2) View by Name, Size, Kind or Date; The first item is the one which is listed at the topmost column in the list window. The order may not be changed even if you choose the items separately by shift-clicking.
  271.  
  272.   • to fetch the first item, and set
  273.      It works the same to above switch, and additionally to set the date time stamp of the first item to the fields. 
  274. <End Panel>
  275.  
  276.  
  277. ########
  278. # Panel "AppleScript commands"
  279. ########
  280.  
  281. <Define Panel> "AppleScript commands"
  282. <Format> "Heading"
  283. AppleScript commands
  284.  
  285. <Format> "Coding"
  286. Required Suite:
  287.     open  alias   -- touch the items
  288.     print  alias  -- (do nothing)
  289.     run     -- Sent to an application when it is double-clicked
  290.     quit    -- Quit application
  291.  
  292. touchMe Suite:
  293.  get prefs creation/modification -- get the current settings
  294.    Result:   prefs  -- list of current settings
  295.  set prefs creation/modification to prefs -- set the new settings
  296.  load prefs  -- load the settings from the preferences file
  297.  save prefs  -- save the settings to the preferences file
  298.  touch  alias  -- touch the items
  299.  fetch  alias  -- fetch the item, and set the date time settings
  300.    Result:  time stamp -- list of creation and modification date time
  301. <End Panel>
  302.  
  303.  
  304. <Define Panel> "AppleScript classes"
  305. <Format> "Heading"
  306. AppleScript classes
  307.  
  308. <Format> "Coding"
  309. Class prefs: Settings information
  310. Properties:
  311.  enabled  true/false
  312.  flag  current/exact/firstone/firstset
  313.  value  date value
  314.  
  315. Class time stamp: creation and modification date time
  316. Properties:
  317.  creation date  date value
  318.  modification date  date value
  319. <End Panel>
  320.  
  321.  
  322. <Define Panel> "AppleScript examples"
  323. <Format> "Heading"
  324. AppleScript examples
  325.  
  326. <Format> "Coding"
  327. Example: A droplet to change the creation date to the current date, and the modification date according to the first file
  328.  
  329. on open (docList)
  330.   tell application "touchMe"
  331.     set theDate to current date
  332.     set xDate to date "8/1/96 12:34:56"
  333.     set prefs creation to {enabled:true, flag:exact, value:theDate}
  334.     set prefs modification to {enabled:true, flag:firstone}
  335.     touch docList
  336.     quit
  337.   end tell
  338. end open
  339. <End Panel>
  340.  
  341.  
  342. ########
  343. # Panel "Revision history"
  344. ########
  345. <Define Panel> "Revision history"
  346. <Format> "Heading"
  347. Revision history (1)
  348.  
  349. <Format> "Text"
  350. • v.1.1.2, published on February 10, 1997
  351.  - New. You can now drag the date time string among the edit fields.
  352.  - New. For AppleScript commands “touch” and “fetch”, they are now accepting both single file or a list of files as target files.
  353.  - New. With the option-key pressed, Set-Present-Time button will clear the time part, that means a midnight.
  354.  - Bug. It sometimes failed to hilite the border of touchMe window when you drag the files with option-key pressed. Fixed it, I hope.
  355.  - New. The C++ compiler was changed to CW11 from CW9 of CodeWarrior PowerPlant. Due to this change on LApplication class, I have to update my CHelpMenu class to enable the “Help touchMe” item of the help menu.
  356.  - New. Added an Apple Guide file. I hope this guide file will be of much help to you.
  357. <End Panel>
  358.  
  359.  
  360. <Define Panel> "Revision history (2)"
  361. <Format> "Heading"
  362. Revision history (2)
  363.  
  364. <Format> "Text"
  365. • v.1.1.1, published on August 8, 1996
  366.  - New. During a drag & drop operation with option-key pressed, the command “touch” and “fetch” are exchanged temporarily each other.
  367.  - New. Four date time fields are sensitive to accept items separately.
  368.  - New. It remembers the last window position on quit by “Cancel”.
  369.  - Bug. A well-known (but, I didn’t know:-) MacOS bug on using colored alert boxes is fixed. Thanks to Rokkaku Fumio who presented me with a nice solution.
  370.  - New. Enabled the “Close Box” in the window title that works as “Cancel” button, and the help menu item of the desktop menu bar.
  371.  - New. Added some practical AppleScript samples.
  372.  - Bug. Corrected a typo, a wrong file name for “touchMe Prefs”.;-)
  373.  - Special thanks to Jim van Zee who has always encouraged me in this project and made some cool suggestions to cover the problems.
  374. <End Panel>
  375.  
  376. <Define Panel> "Revision history (3)"
  377. <Format> "Heading"
  378. Revision history (3)
  379.  
  380. <Format> "Text"
  381. • v.1.1, published on August 1, 1996
  382.    All the programs were rewritten for the Metrowerks’ C++ application framework PowerPlant of CodeWarrior.
  383.  
  384. • v.1.0, first released on March 9, 1994
  385.    The first version of the program, originally written in Symantec’s THINK-C.
  386. <End Panel>
  387.  
  388.  
  389. ########
  390. # Panel "The package includes..."
  391. ########
  392. <Define Panel> "The package includes..."
  393. <Format> "Heading"
  394. The package includes...
  395.  
  396. <Format> "Text"
  397.    1. touchMe              -- a fat-binary application program
  398.    2. touchMe Guide    -- an Apple Guide file
  399.    3. touchMe readme  -- just this file you are reading
  400.    4. touchMe scripts  -- sample AppleScript code using with touchMe
  401.    5. touchMe source   -- source code in CodeWarrior 11 PowerPlant
  402.    6. Guide source       -- source code of Apple Guide file
  403.  
  404. This is a freeware program. You can distribute it without any limitations nor permissions.
  405. <End Panel>
  406.  
  407.  
  408. ########
  409. # Panel "About the Author"
  410. ########
  411. <Define Panel> "About the Author"
  412. <Format> "Heading"
  413. About the Author
  414.  
  415. <Format> "Text"
  416. If you have any questions, suggestions or problems, please feel free to contact me via e-mail;
  417.    <<mailto:mizutori@ai.rcast.u-tokyo.ac.jp>
  418.    <<mailto:mizutori@po.iijnet.or.jp>
  419.  
  420. The latest versions of my software are available at my following WWW page;
  421.    <<http://www.bekkoame.or.jp/~mizutori/software/catalog.html>
  422.  
  423. Author:
  424. Mizutori Tetsuya, RCAST, Univ. of Tokyo, Japan
  425. mizutori@ai.rcast.u-tokyo.ac.jp
  426. <End Panel>
  427.  
  428.  
  429. ########
  430. # end of script
  431. ########
  432.